package Chapter6.entity;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

@Entity
public class Student {
	private StudentPK id;
	private String comment;

	public Student() {
	}

	public Student(StudentPK id, String comment) {
		this.id = id;
		this.comment = comment;
	}

	@EmbeddedId
	public StudentPK getId() {
		return id;
	}

	public void setId(StudentPK id) {
		this.id = id;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
